<?
/*----------------------------------------------------------------------
          (C) Bobtail-Bear 2006 	小飞熊新一代下载系统
          	代码编写：小飞熊	版权所有：小飞熊[L.F.Bear]
				官方网站/技术支持：http://www.lfbear.cn
------------------------------------------------------------------------
          (C) Bobtail-Bear 2006 	L.F.Bear's New Download Sysytem
          	Powered by L.F.Bear  Copyright L.F.Bear's Home(R)
               Official Web/Support：http://www.lfbear.cn
-----------------------------------------------------------------------*/

//本页脚本功能：付分下载扣分转向页2

$idx=$_GET[id];
$linkx=$_GET[link];
$sidx=$_GET[sid];

require("include/config.inc.php");
require("function.php");

if($sidx==md5(md5(date(Ymd)))) $xx=1;
$softinfo=readf($path_soft."/".$idx.".php");
$softinfo=explode("|",$softinfo);
$info_num=array("1"=>"26","2"=>"30","3"=>"34","4"=>"38","5"=>"42");
switch($linkx)
{
case 1: $to=26; break;
case 2: $to=30; break;
case 3: $to=34; break;
case 4: $to=38; break;
case 5: $to=42; break;
}

if($xx==1) header ("Location:$softinfo[$to]");
else
{
	require_once("include/config.base.php");
	require_once("language/{$syslang}/function.php");
	$e_title=$f_lang[61];
	$e_msg=$f_lang[63];
	$e_link=$f_lang[62];
	require("error.php");

}
?>